<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js" type="text/javascript"></script>
</head>
<body>
    <div id="root"> 
    <a href="getstorage.html" target="_blank">跳转新窗口</a>
    <a href="getstorage.html" >跳转本窗口</a>
    </div>    
    <script type="text/javascript">
    window.onload=function(){
        window.sessionStorage.setItem("aaa","小狐狸学java")
        window.localStorage.setItem("ccc","三元也要学")
    }
    </script>
</body>
</html>